package com.wfcm.service;

import com.wfcm.entity.MemberGift;
import com.wfcm.entity.WfMemberEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 平台用户信息表
 * 
 * @author xlf
 * @email xlfbe696@gmail.com
 * @date 2018-01-22 13:57:19
 */
public interface WfMemberService {
	
	WfMemberEntity queryObject(Integer userid);

	WfMemberEntity queryWx(Integer userid);

	WfMemberEntity queryByMobile(String mobile);
	
	WfMemberEntity queryByIdentity(String tokenId);

	WfMemberEntity queryByOpenid(String Openid);
	
	List<WfMemberEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(WfMemberEntity wfMember);
	
	void update(WfMemberEntity wfMember);
	
	void delete(Integer userid);
	
	void deleteBatch(Integer[] userids);

	Integer addGift(MemberGift memberGift);

	Integer updateGift(Integer id);

	void addStudyTime(Map<String, Object> map);

	void updateStudyTime(WfMemberEntity wfMember);

	List<MemberGift> searchGift(String telephone);
}
